import request from '@/utils/request'

export const designApi = {
  // 生成设计方案
  generateDesign(data) {
    return request({
      url: '/design/generate',
      method: 'POST',
      data
    })
  },
  
  // 获取设计方案详情
  getDesignDetail(id) {
    return request({
      url: `/design/detail/${id}`,
      method: 'GET'
    })
  },
  
  // 获取设计方案列表
  getDesignList(params) {
    return request({
      url: '/design/list',
      method: 'GET',
      params
    })
  },
  
  // 更新设计方案
  updateDesign(id, data) {
    return request({
      url: `/design/update/${id}`,
      method: 'PUT',
      data
    })
  },
  
  // 删除设计方案
  deleteDesign(id) {
    return request({
      url: `/design/delete/${id}`,
      method: 'DELETE'
    })
  }
} 